import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export function createRouter() {
  return new Router({
    mode: 'history',
    routes: [
      { path: '/', component: () => import('../pages/Nav.vue') },
      { path: '/home', redirect: '/my/page' },
      { path: '/my/page', component: () => import('../pages/Workbench.vue'), meta: { keepAlive: true } },


      { path: '/login', component: () => import('../pages/Login.vue'), name: 'login' },
      { path: '/logout', component: () => import('../pages/Logout.vue'), name: 'logout' },
      { path: '/find-password', component: () => import('../pages/FindPassword.vue'), name: 'find-password' },
      { path: '/register', component: () => import('../pages/Register.vue'), name: 'register' },

      { path: '/admin/users', component: () => import('../pages/admin/Users.vue') },
      { path: '/admin/depts', component: () => import('../pages/admin/Departments.vue') },
      { path: '/admin/groups', component: () => import('../pages/Groups.vue') },
      { path: '/admin/role/privileges', component: () => import('../pages/RolePrivileges.vue') },
      { path: '/admin/members', component: () => import('../pages/Members.vue'), meta: { keepAlive: true } },
      { path: '/admin/member/:id', component: () => import('../pages/Member.vue') },
      { path: '/admin/member/enterprise/:id', component: () => import('../pages/MemberEnterprise.vue') },
      { path: '/admin/patcodes', component: () => import('../pages/settings/PatCodes.vue') },
      { path: '/admin/config/eterm', component: () => import('../pages/EtermConfig.vue') },
      { path: '/admin/config', component: () => import('../pages/EtermConfig.vue') },
      { path: '/admin/keyCustomerPolicies', component: () => import('../pages/admin/KeyCustomerPolicies.vue') },
      { path: '/admin/vehicleGroups', component: () => import('../pages/settings/VehicleGroupInfo.vue') },
      { path: '/admin/vehicleGroups/mappings', component: () => import('../pages/settings/VehicleGroupMapping.vue') },
      { path: '/admin/customerServiceGroups', component: () => import('../pages/settings/CustomerServiceGroup.vue') },
      { path: '/admin/customerServiceTemplates', component: () => import('../pages/settings/CustomerServiceTemplate.vue') },
      { path: '/admin/customerServiceTemplate/:id', component: () => import('../pages/settings/CustomerServiceTemplateDetail.vue') },
      { path: '/admin/settlementReportTemplates', component: () => import('../pages/settings/SettlementReportTemplate.vue') },

      { path: '/recharge', component: () => import('../pages/Recharge.vue') },

      { path: '/flt/search', component: () => import('../pages/flight/FlightSearchForm.vue') },
      { path: '/intlflt/search', component: () => import('../pages/flight/IntlFlightSearch.vue') },
      { path: '/flt/search-result', component: () => import('../pages/flight/FlightSearchResult.vue') },
      { path: '/flt/booking', component: () => import('../pages/flight/FlightBookingForm.vue') },

      { path: '/flt/orders', component: () => import('../pages/flight/FlightOrders.vue'), meta: { keepAlive: true } },
      { path: '/flt/orders/delivery', component: () => import('../pages/flight/FlightOrdersToDelivery.vue'), meta: { keepAlive: true } },
      { path: '/flt/orders/print', component: () => import('../pages/flight/FlightOrdersToPrint.vue') },
      { path: '/flt/order/:id', component: () => import('../pages/flight/FlightOrderDetail.vue'), name: 'flightOrderDetail' },
      { path: '/flt/order/:id/print', component: () => import('../pages/flight/FlightOrderDetailToPrint.vue'), name: 'flightOrderPrint' },
      { path: '/flt/order/:id/history', component: () => import('../pages/flight/FlightOrderHistory.vue'), name: 'flightOrderHistory' },
      { path: '/new/flt/order', component: () => import('../pages/flight/NewFlightOrder.vue') },

      { path: '/flt/refund/orders', component: () => import('../pages/flight/FlightRefundOrders.vue'), meta: { keepAlive: true } },
      { path: '/flt/refund/order/new', component: () => import('../pages/flight/FlightOrderRefundNew.vue') },
      { path: '/flt/refund/order/:id', component: () => import('../pages/flight/FlightRefundOrderDetail.vue') },
      
      { path: '/flt/change/orders', component: () => import('../pages/flight/FlightChangeOrders.vue'), meta: { keepAlive: true } },
      { path: '/flt/change/order/new', component: () => import('../pages/flight/FlightOrderChangeNew.vue') },
      { path: '/flt/change/order/:id', component: () => import('../pages/flight/FlightChangeOrderDetail.vue') },

      { path: '/vas/orders', component: () => import('../pages/VasOrders.vue') },
      { path: '/new/vas/order', component: () => import('../pages/NewVasOrder.vue') },
      { path: '/vas/order/:id', component: () => import('../pages/VasOrderDetail.vue') },

      { path: '/vaas/orders', component: () => import('../pages/vaas/VaasOrders.vue') },
      { path: '/vaas/order', component: () => import('../pages/vaas/VaasOrderNew.vue') },
      { path: '/vaas/order/:id', component: () => import('../pages/vaas/VaasOrderDetail.vue') },

      { path: '/insurance/orders', component: () => import('../pages/insurance/InsuranceOrders.vue') },
      { path: '/insurance/order', component: () => import('../pages/insurance/InsuranceOrder.vue') },
      { path: '/insurance/order/:id', component: () => import('../pages/insurance/InsuranceOrderDetail.vue') },


      { path: '/hotel/orders', component: () => import('../pages/hotel/HotelOrders.vue'), meta: { keepAlive: true } },
      { path: '/hotel/order/:id', component: () => import('../pages/hotel/HotelOrder.vue') },
      { path: '/hotel/order', component: () => import('../pages/hotel/HotelOrderNew.vue') },
      { path: '/hotel/order_v2', component: () => import('../pages/hotel/HotelOrderNew_v2.vue') },
      { path: '/hotel/search', component: () => import('../pages/hotel/HotelSearch.vue') },

      { path: '/train/orders', component: () => import('../pages/train/TrainOrders.vue'), meta: { keepAlive: true } },
      { path: '/train/order/:id', component: () => import('../pages/train/TrainOrder.vue') },
      { path: '/train/order', component: () => import('../pages/train/TrainOrderNew.vue') },

      { path: '/train/refund/orders', component: () => import('../pages/train/TrainRefundOrders.vue'), meta: { keepAlive: true } },
      { path: '/train/refund/order/:id', component: () => import('../pages/train/TrainRefundOrder.vue') },
      { path: '/train/refund/order', component: () => import('../pages/train/TrainRefundOrderNew.vue') },

      { path: '/car/orders', component: () => import('../pages/car/RentalCarOrders.vue') },
      { path: '/car/order', component: () => import('../pages/car/CarOrderNew.vue') },
      { path: '/car/order/:id', component: () => import('../pages/car/RentalCarOrder.vue') },

      { path: '/attractions', component: () => import('../pages/attraction/Attractions.vue') },
      { path: '/attraction', component: () => import('../pages/attraction/Attraction.vue') },
      { path: '/attraction/:id', component: () => import('../pages/attraction/AttractionDetail.vue') },
      { path: '/attractions/ticket/orders', component: () => import('../pages/attraction/TicketOrders.vue') },
      { path: '/attractions/ticket/order/:id', component: () => import('../pages/attraction/TicketOrder.vue') },


      { path: '/delivery/notes', component: () => import('../pages/delivery/DeliveryNotes.vue'), meta: { keepAlive: true } },
      { path: '/delivery/note/:id', component: () => import('../pages/delivery/DeliveryNote.vue') },
      { path: '/delivery/note', component: () => import('../pages/delivery/DeliveryNoteNew.vue') },

      { path: '/bills', component: () => import('../pages/bill/Bills.vue'), meta: { keepAlive: true } },
      { path: '/bills_v2', component: () => import('../pages/bill/Bills_v2.vue'), meta: { keepAlive: true } },
      { path: '/bills/unreviewed', component: () => import('../pages/bill/BillsToReview.vue') },
      { path: '/bills/unreviewed_v2', component: () => import('../pages/bill/BillsToReview_v2.vue') },
      { path: '/bills/toSettle', component: () => import('../pages/bill/BillsToSettle.vue'), meta: { keepAlive: true } },

      { path: '/bill/detail/:id', component: () => import('../pages/bill/BillDetail.vue') },

      { path: '/flt/tickets', component: () => import('../pages/bill/BillFlightTickets.vue'), meta: { keepAlive: true } },
      // {path: '/new/flt/ticket',         component: MyNewFlightTicket () => import('../pages/') },

      { path: '/flt/refunds', component: () => import('../pages/bill/BillFlightRefundTickets.vue') },

      { path: '/train/tickets', component: () => import('../pages/bill/BillTrainTickets.vue') },

      { path: '/hotel/bills', component: () => import('../pages/bill/BillHotels.vue') },

      { path: '/ent/receipts', component: () => import('../pages/bill/EntReceipts.vue'), meta: { keepAlive: true } },
      { path: '/ent/receipt/:id/history', component: () => import('../pages/bill/EntReceiptHistory.vue') },
      { path: '/ent/receipt/:id/writeoff', component: () => import('../pages/bill/EntReceiptWriteOff.vue') },

      { path: '/ent/settlements', component: () => import('../pages/bill/EntSettlements.vue'), meta: { keepAlive: true } },
      { path: '/ent/settlement/:id', component: () => import('../pages/bill/EntSettlementDetail.vue') },
      { path: '/ent/settlement/:id/v2', component: () => import('../pages/bill/EntSettlementDetail_v2.vue') },
      { path: '/ent/settlement/:id/report', component: () => import('../pages/bill/EntSettlementReport.vue') },

      { path: '/statement/receipts', component: () => import('../pages/statement/EntReceipts.vue'), meta: { keepAlive: true } },
      { path: '/statement/settlements', component: () => import('../pages/statement/EntSettlements.vue'), meta: { keepAlive: true } },
      { path: '/statement/settlement/:id', component: () => import('../pages/statement/EntSettlementDetail_v2.vue') },


      { path: '/customers', component: () => import('../pages/customer/Customers.vue'), meta: { keepAlive: true } },
      { path: '/customer', component: () => import('../pages/customer/CustomerNew.vue') },
      { path: '/customer/department', component: () => import('../pages/customer/CustomerDepartment.vue') },
      { path: '/customer/department/:id', component: () => import('../pages/customer/CustomerDepartmentDetail.vue') },
      { path: '/customer/departments', component: () => import('../pages/customer/CustomerDepartments.vue'), meta: { keepAlive: true } },
      { path: '/customer/cost-centers', component: () => import('../pages/customer/CustomerCostCenters.vue') },
      { path: '/customer/todos', component: () => import('../pages/customer/CustomerTodos.vue') },
      { path: '/customer/:id', component: () => import('../pages/customer/CustomerDetail.vue') },
      { path: '/customer/:id/trans', component: () => import('../pages/admin/EntAmountHistory.vue') },

      { path: '/passengers', component: () => import('../pages/Passengers.vue'), meta: { keepAlive: true } },
      { path: '/passenger/:id', component: () => import('../pages/PassengerDetail.vue') },
      { path: '/passenger', component: () => import('../pages/Passenger.vue') },
      { path: '/passenger-key-customer-policy', component: () => import('../pages/Passengers-KeyCustomerPolicy.vue') },


      { path: '/ent/balances', component: () => import('../pages/admin/EntBalances.vue'), meta: { keepAlive: true } },

      { path: '/setting/fuel-surcharge', component: () => import('../pages/admin/FuelSurcharge.vue') },
      { path: '/setting/bill-templates', component: () => import('../pages/settings/BillTemplates.vue') },

      { path: '/suppliers', component: () => import('../pages/settings/Suppliers.vue') },
      { path: '/api-product-suppliers', component: () => import('../pages/settings/ApiProductSupplier.vue') },
      { path: '/payments', component: () => import('../pages/settings/PaymentTypes.vue') },
      { path: '/incomes', component: () => import('../pages/Incomes.vue') },
      { path: '/fakedTicket', component: () => import('../pages/admin/TicketNoFaked.vue') },


      { path: '/products', component: () => import('../pages/settings/Products.vue') },
      { path: '/product/new', component: () => import('../pages/settings/ProductNew.vue') },

      { path: '/trans/histories', component: () => import('../pages/TransactionHistories.vue') },


      { path: '/tool/fd/request', component: () => import('../pages/FdRequest.vue') },
      { path: '/tool/fd/result', component: () => import('../pages/FdResult.vue') },
      { path: '/tool/detr/result', component: () => import('../pages/DetrResult.vue') },
      { path: '/tool/qinfos', component: () => import('../pages/Qinfo-list.vue') },
      { path: '/tool/qinfo/setting', component: () => import('../pages/Qinfo-setting.vue') },
      { path: '/tool/eterm', component: () => import('../pages/tools/Eterm.vue') },
      { path: '/tool/sms', component: () => import('../pages/tools/Sms.vue') },
      { path: '/tprs', component: () => import('../pages/tools/Tpr.vue') },

      { path: '/tasks', component: () => import('../pages/misc/Tasks.vue') },

      { path: '/tool/pnrs', component: () => import('../pages/pnr/Pnrs.vue'), meta: { keepAlive: true } },
      { path: '/tool/pnr/:id', component: () => import('../pages/pnr/PnrDetail.vue') },
      { path: '/tool/pnrs/stat', component: () => import('../pages/pnr/Pnr-stat.vue') },
      { path: '/tool/pnrs/ctcm', component: () => import('../pages/pnr/Pnr-ctcm.vue') },
      { path: '/tool/pnrs/ctct', component: () => import('../pages/pnr/Pnr-ctct.vue') },
      { path: '/tool/pnrs/mobile', component: () => import('../pages/pnr/Pnr-mobile.vue') },
      { path: '/tool/pnrs/syslog', component: () => import('../pages/pnr/Pnr-syslog.vue') },


      { path: '/report/sale/month', component: () => import('../pages/report/SaleReportMonth.vue') },
      { path: '/report/monthly/op1', component: () => import('../pages/report/SaleReportMonthByOp1.vue') },

      { path: '/report/refund/month', component: () => import('../pages/report/ReportFlightRefundOrderMonth.vue') },
      { path: '/report/statistic/monthly', component: () => import('../pages/report/SaleMonthStatistic.vue') },
      { path: '/report/paymentMethod/statistic', component: () => import('../pages/report/ReportPaymentMethodStatistic.vue') },
      { path: '/report/stat/op1', component: () => import('../pages/report/ReportStatByOp1.vue') },
      { path: '/report/stat/op2', component: () => import('../pages/report/ReportStatByOp2.vue') },
      { path: '/report/stat/salesman', component: () => import('../pages/report/ReportStatBySalesman.vue') },

      { path: '/report/stat/supplier', component: () => import('../pages/report/ReportStatBySupplier.vue') },
      { path: '/report/stat/airlines', component: () => import('../pages/report/ReportStatByAirlines.vue') },


      { path: '/my/password', component: () => import('../pages/MyPassword.vue') },
      { path: '/my/histories', component: () => import('../pages/MyHistories.vue') },
      { path: '/my/worktime', component: () => import('../pages/MyWorkTime.vue') },

      { path: '/data/airports', component: () => import('../pages/data/Airports.vue') },
      { path: '/data/cities', component: () => import('../pages/data/Cities.vue') },
      { path: '/data/airlines', component: () => import('../pages/data/Airlines.vue') },
      { path: '/data/subclasses', component: () => import('../pages/data/Subclasses.vue') },
      { path: '/data/airline/schedules', component: () => import('../pages/data/AirlineSchedules.vue') },
      { path: '/data/luggages', component: () => import('../pages/data/Luggages.vue') },

      { path: '/catch/orders', component: () => import('../pages/CatchFlightOrders.vue'), meta: { keepAlive: true } },
      { path: '/catch/order/new', component: () => import('../pages/CatchFlightOrder_New.vue') },

      { path: '/paymentOrders', component: () => import('../pages/PaymentOrders.vue') },

      
      { path: '/tbooking/orders', component: () => import('../pages/tbooking/TbookingOrders.vue') },
      { path: '/tbooking/order/:id', component: () => import('../pages/tbooking/TbookingOrderDetail.vue') },
      { path: '/tbooking/tickets', component: () => import('../pages/tbooking/TbookingTickets.vue') },
      { path: '/tbooking/policies', component: () => import('../pages/tbooking/TbookingPolicies.vue'), meta: { keepAlive: true } },
      { path: '/tbooking/policy/bottom-price', component: () => import('../pages/tbooking/TbookingPolicyBottomPrice.vue') },
      { path: '/tbooking/policy-upload', component: () => import('../pages/tbooking/TbookingPolicyUpload.vue') },
      { path: '/tbooking/intl/policies', component: () => import('../pages/tbooking/IntlPolicies.vue'), meta: { keepAlive: true } },

      { path: '/h5/home', redirect: '/h5/my/page' },
      { path: '/h5/my/page', component: () => import('../pages_h5/Workbench.vue'), meta: { keepAlive: true } },
      { path: '/h5/flt/search', component: () => import('../pages_h5/flight/FlightSearchForm.vue') },
      // {path: '/h5/intlflt/search',         component: () => import('../pages_h5/flight/IntlFlightSearch.vue')},
      { path: '/h5/flt/search-result', component: () => import('../pages_h5/flight/FlightSearchResult.vue') },
      { path: '/h5/flt/booking', component: () => import('../pages_h5/flight/FlightBookingForm.vue') },
      { path: '/h5/flt/orders', component: () => import('../pages_h5/FlightOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/flt/order/:id', component: () => import('../pages_h5/FlightOrderDetail.vue'), name: 'h5_flightOrderDetail' },
      { path: '/h5/flt/order/:id/history', component: () => import('../pages_h5/FlightOrderHistory.vue'), name: 'h5_flightOrderHistory' },
      { path: '/h5/new/flt/order', component: () => import('../pages_h5/FlightOrder.vue') },
      { path: '/h5/flt/refund/orders', component: () => import('../pages_h5/FlightRefundOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/flt/refund/order/:id', component: () => import('../pages_h5/FlightRefundOrderDetail.vue') },
      { path: '/h5/flt/change/orders', component: () => import('../pages_h5/FlightChangeOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/flt/change/order/:id', component: () => import('../pages_h5/FlightChangeOrderDetail.vue') },
      { path: '/h5/vas/orders', component: () => import('../pages_h5/VasOrders.vue') },
      { path: '/h5/new/vas/order', component: () => import('../pages_h5/VasOrder.vue') },
      { path: '/h5/vas/order/:id', component: () => import('../pages_h5/VasOrderDetail.vue') },
      { path: '/h5/insurance/orders', component: () => import('../pages_h5/InsuranceOrders.vue') },
      { path: '/h5/vaas/orders', component: () => import('../pages_h5/vaas/VaasOrders.vue') },
      { path: '/h5/vaas/order', component: () => import('../pages_h5/vaas/VaasOrderNew.vue') },
      { path: '/h5/vaas/order/:id', component: () => import('../pages_h5/vaas/VaasOrderDetail.vue') },
      { path: '/h5/hotel/orders', component: () => import('../pages_h5/hotel/HotelOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/hotel/order/:id', component: () => import('../pages_h5/hotel/HotelOrder.vue') },
      { path: '/h5/hotel/order', component: () => import('../pages_h5/hotel/HotelOrderNew.vue') },
      { path: '/h5/hotel/search', component: () => import('../pages_h5/hotel/HotelSearch.vue') },
      { path: '/h5/hotel/search-result', component: () => import('../pages_h5/hotel/HotelSearchResult.vue') },
      { path: '/h5/hotel/detail', component: () => import('../pages_h5/hotel/HotelDetail.vue') },
      { path: '/h5/train/orders', component: () => import('../pages_h5/train/TrainOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/train/order/:id', component: () => import('../pages_h5/train/TrainOrder.vue') },
      { path: '/h5/train/order', component: () => import('../pages_h5/train/TrainOrderNew.vue') },
      { path: '/h5/train/refund/orders', component: () => import('../pages_h5/train/TrainRefundOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/train/refund/order/:id', component: () => import('../pages_h5/train/TrainRefundOrder.vue') },
      { path: '/h5/train/refund/order', component: () => import('../pages_h5/train/TrainRefundOrderNew.vue') },

      { path: '/h5/bills', component: () => import('../pages_h5/bill/Bills.vue'), meta: { keepAlive: true } },
      { path: '/h5/bills/unreviewed', component: () => import('../pages_h5/bill/BillsToReview.vue') },
      { path: '/bills/toSettle', component: () => import('../pages_h5/bill/BillsToSettle.vue') },

      { path: '/h5/bill/detail/:id', component: () => import('../pages_h5/bill/BillDetail.vue') },

      { path: '/h5/report/statistic/monthly', component: () => import('../pages_h5/report/SaleMonthStatistic.vue') },
      { path: '/h5/report/stat/supplier', component: () => import('../pages_h5/report/ReportStatBySupplier.vue') },
      { path: '/h5/report/stat/airlines', component: () => import('../pages_h5/report/ReportStatByAirlines.vue') },

      { path: '/h5/customers', component: () => import('../pages_h5/customer/Customers.vue'), meta: { keepAlive: true } },
      { path: '/h5/customer', component: () => import('../pages_h5/customer/CustomerNew.vue') },
      { path: '/h5/customer/department', component: () => import('../pages_h5/customer/CustomerDepartment.vue') },
      { path: '/h5/customer/departments', component: () => import('../pages_h5/customer/CustomerDepartments.vue'), },
      { path: '/h5/customer/cost-centers', component: () => import('../pages_h5/customer/CustomerCostCenters.vue') },
      { path: '/h5/customer/todos', component: () => import('../pages_h5/customer/CustomerTodos.vue') },
      { path: '/h5/customer/:id', component: () => import('../pages_h5/customer/CustomerDetail.vue') },
      { path: '/h5/passengers', component: () => import('../pages_h5/customer/Passengers.vue'), meta: { keepAlive: true } },
      { path: '/h5/passenger/:id', component: () => import('../pages_h5/customer/PassengerDetail.vue') },
      { path: '/h5/passenger', component: () => import('../pages_h5/customer/Passenger.vue') },
      { path: '/h5/ent/balances', component: () => import('../pages_h5/customer/EntBalances.vue'), meta: { keepAlive: true } },

      { path: '/h5/tools/sms', component: () => import('../pages_h5/tools/Sms.vue') },
      { path: '/h5/tools/eterm', component: () => import('../pages_h5/tools/Eterm.vue') },
      { path: '/h5/tools/tprs', component: () => import('../pages_h5/tools/Tpr.vue') },
      { path: '/h5/tools/catches', component: () => import('../pages_h5/tools/CatchFlightOrders.vue'), meta: { keepAlive: true } },
      { path: '/h5/tools/catch/new', component: () => import('../pages_h5/tools/CatchFlightOrder_New.vue') },
      { path: '/h5/tools/pnrs', component: () => import('../pages_h5/tools/Pnrs.vue'), meta: { keepAlive: true } },
      { path: '/h5/tools/pnr/:id', component: () => import('../pages_h5/tools/PnrDetail.vue') },

      { path: '/h5/admin/users', component: () => import('../pages_h5/admin/Users.vue') },
      { path: '/h5/admin/user/:id', component: () => import('../pages_h5/admin/UserDetail.vue') },
      { path: '/h5/admin/user', component: () => import('../pages_h5/admin/User.vue') },

      { path: '/h5/admin/depts', component: () => import('../pages_h5/admin/Departments.vue') },

      { path: '/h5/suppliers', component: () => import('../pages_h5/settings/Suppliers.vue'), meta: { keepAlive: true } },
      { path: '/h5/supplier/:id', component: () => import('../pages_h5/settings/SupplierDetail.vue') },
      { path: '/h5/supplier', component: () => import('../pages_h5/settings/Supplier.vue') },

      { path: '/h5/paymentTypes', component: () => import('../pages_h5/settings/PaymentTypes.vue') },
      { path: '/h5/products', component: () => import('../pages_h5/settings/Products.vue') },
      { path: '/h5/product/:id', component: () => import('../pages_h5/settings/ProductDetail.vue') },
      { path: '/h5/product', component: () => import('../pages_h5/settings/ProductNew.vue') },

      { path: '/h5/data/airports', component: () => import('../pages_h5/data/Airports.vue') },
      { path: '/h5/data/airlines', component: () => import('../pages_h5/data/Airlines.vue') },
      { path: '/h5/data/subclasses', component: () => import('../pages_h5/data/Subclasses.vue'), meta: { keepAlive: true } },
      { path: '/h5/data/subclass/:id', component: () => import('../pages_h5/data/SubclassDetail.vue') },
      { path: '/h5/data/subclass', component: () => import('../pages_h5/data/Subclass.vue') },
      { path: '/h5/data/ruleTimeWindow', component: () => import('../pages_h5/data/RuleTimeWindow.vue') },
      { path: '/h5/data/luggages', component: () => import('../pages_h5/data/Luggages.vue'), meta: { keepAlive: true } },
      { path: '/h5/data/luggage/:id', component: () => import('../pages_h5/data/LuggageDetail.vue') },
      { path: '/h5/data/luggage', component: () => import('../pages_h5/data/Luggage.vue') },


      { path: '/h5/tool/qinfos', component: () => import('../pages_h5/Qinfo-list.vue') },


      { path: '/wxs/menus', component: () => import('../pages_h5/wxs/CustomMenus.vue') },
      { path: '/wxs/users', component: () => import('../pages_h5/wxs/Users.vue') },

      { path: '/ww/appchats', component: () => import('../pages_h5/ww/AppChats.vue') },
    ],
    scrollBehavior(to, from, savedPosition) {
      // return desired position
      return { x: 0, y: 0 }
    }
  });
}
